var Navigator;

function setAdapter(adapter) {
  Navigator = adapter;
}

function goBack() {
  return Navigator.goBack();
}

function replace(url, param) {
  return Navigator.replace(url, param);
}

function go(delta) {
  return Navigator.go(delta);
}

function push(url, param) {
  return Navigator.push(url, param);
}

function getParams(name) {
  return Navigator.getParams(name);
}

function goHome() {
  return Navigator.goHome();
}

function backTo(url) {
  return Navigator.backTo(url);
}

export default {
  setAdapter,
  push,
  go,
  goBack,
  replace,
  getParams,
  backTo,
  goHome
};
